package com.klasster.recruitmentPlatform.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.klasster.recruitmentPlatform.domain.po.Permission;
import com.klasster.recruitmentPlatform.service.PermissionService;
import com.klasster.recruitmentPlatform.service.mapper.PermissionMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService {

    public List<Permission> getByRole(String role) {
        return baseMapper.selectByRole(role);
    }

}
